import Vue from 'vue'
import VueRouter from 'vue-router'
import BookVue from "@/views/BookVue";
import editVue from "@/views/EditVue";

Vue.use(VueRouter)

const routes = [
  {path:'/book',component:BookVue},//path表示路径,而component表示路由对应的组件
  {path:'/edit',component:editVue}
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
